//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.qzsoft.jeemis.platform.security.service;

import com.qzsoft.jeemis.platform.security.user.UserDetail;
import com.qzsoft.jeemis.repository.sys.entity.BasicUserEntity;
import com.qzsoft.jeemis.repository.sys.entity.BasicUserTokenEntity;
import com.qzsoft.system.repository.sys.entity.SysDeptEntity;

import org.apache.ibatis.annotations.Param;
import java.util.Set;

public interface ShiroService {
    
    Set<String> getUserPermissions(@Param("user") UserDetail user);

    BasicUserTokenEntity getByToken(String token);

    BasicUserEntity getUser(Long userId);

    UserDetail getUserDetail(Long userId);

    UserDetail setUserDetail(Long userId, String currCompanyPkid);

    /**
     * 根据部门id获取公司
     * @param deptId
     * @return
     */
    SysDeptEntity getCompany(String deptId);

    /**
     * 根据部门id获取部门
     * @param deptId
     * @return
     */
    SysDeptEntity getDept(String deptId);

}
